import { ajaxPost } from 'api/axios';

export function getFoodGoodsSlider() {
	let url = '/api/foodGoods/slider';
	
	let data = {};
	
	return ajaxPost(url, data);
}

export function getOnlyGoodsPanicBuy() {
	let url = '/api/onlyGoods/panicBuy';
	
	let data = {};
	
	return ajaxPost(url, data);
}

export function getOnlyGoods(page, pageSize) {
	let url = '/api/onlyGoods/list';
	
	let data = {
		page, 
		pageSize
	};
	
	return ajaxPost(url, data);
}
